package com.atguigu.facade;

/**
 * @program: design-patterns
 * @author: yangshen
 * @description: 子系统5：立体声
 * @create: 2022-02-21 14:35
 **/
public class Stereo {
    /**
     * 单例模式，使用饿汉式
     */
    private static Stereo instance = new Stereo();

    public static Stereo getInstance(){
        return instance;
    }

    public void on(){
        System.out.println("立体声 打开");
    }

    public void off(){
        System.out.println("立体声 关闭");
    }

    public void up(){
        System.out.println("立体声 声音调大");
    }
}
